package mx.rpc.http;

extern class HTTPService extends mx.rpc.AbstractInvoker {
	var channelSet : mx.messaging.ChannelSet;
	var contentType : String;
	var destination : String;
	var headers : Dynamic;
	var method : String;
	var request : Dynamic;
	var requestTimeout : Int;
	var resultFormat : String;
	var rootURL : String;
	var url : String;
	var useProxy : Bool;
	var xmlDecode : Dynamic;
	var xmlEncode : Dynamic;
	function new(?rootURL : String, ?destination : String) : Void;
	function disconnect() : Void;
	function logout() : Void;
	function send(?parameters : Dynamic) : mx.rpc.AsyncToken;
	function setCredentials(username : String, password : String, ?charset : String) : Void;
	function setRemoteCredentials(remoteUsername : String, remotePassword : String, ?charset : String) : Void;
	static var CONTENT_TYPE_FORM : String;
	static var CONTENT_TYPE_XML : String;
	static var DEFAULT_DESTINATION_HTTP : String;
	static var DEFAULT_DESTINATION_HTTPS : String;
	static var ERROR_DECODING : String;
	static var ERROR_ENCODING : String;
	static var ERROR_URL_REQUIRED : String;
	static var RESULT_FORMAT_ARRAY : String;
	static var RESULT_FORMAT_E4X : String;
	static var RESULT_FORMAT_FLASHVARS : String;
	static var RESULT_FORMAT_OBJECT : String;
	static var RESULT_FORMAT_TEXT : String;
	static var RESULT_FORMAT_XML : String;
}
